<?php /* Smarty version 2.6.13, created on 2013-10-08 09:13:17
         compiled from Index/joincp.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'truncate', 'Index/joincp.html', 52, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Coming Eating</title>
<link rel="shortcut icon" href="Tpl/hotel.ico"/>
<!-- href属性中的路径要相对主文件定位，否则会加载不到 -->
<link rel="stylesheet" type="text/css" href="Public/Css/Base.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/joincp.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/position.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/nav.css"/>


<script type="text/javascript" src="Public/Js/jquery.js"></script>
<script type="text/javascript" src="Public/Js/main.js"></script>
<script type="text/javascript" src="Public/Js/lightbox.min.js"></script>
<script type="text/javascript">
		$(document).ready(function() {
			$('#main_nav').allenMenu();
			$('#slide').allenSlide();
			$('a[name=need_lightbox]').lightBox();
		});
</script>

</head>
<body >

<!-- 这个地方用一个标志  确定是否显示这个 -->
<?php if ($_SESSION['loginFlag'] == 0): ?>
	
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/hide.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php endif; ?>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/indexheader.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>


<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/position.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="joincp">
	<div id="joincpheader" class="clear">
				<?php $_from = $this->_tpl_vars['res']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['v']):
?>
		<div id="eachjoincp" class="clear" >
			<div id="eachjoincplogo">
				<a href="JoinCp.php?cp_id=<?php echo $this->_tpl_vars['v']['cp_id']; ?>
"><img src="<?php echo $this->_tpl_vars['v']['cp_pic']; ?>
"/></a>
			</div>
			<div id="eachjoincpphone">
				联系人:<?php echo $this->_tpl_vars['v']['cp_linkman']; ?>
<br/>
				联系人电话：<?php echo $this->_tpl_vars['v']['cp_linkphone']; ?>
<br/>
				公司电话：<?php echo $this->_tpl_vars['v']['cp_phone']; ?>
<br/>
			</div>
			<div id="eachjoincpinfo">
				<?php echo ((is_array($_tmp=$this->_tpl_vars['v']['cp_domain'])) ? $this->_run_mod_handler('truncate', true, $_tmp, 100) : smarty_modifier_truncate($_tmp, 100)); ?>

			</div>
		</div>
		<?php endforeach; else: ?>
			暂时没有加盟公司的信息
		<?php endif; unset($_from); ?>

	</div>
	<div id="joincpinfo" style="background:url(<?php echo $this->_tpl_vars['showData']['cp_pic']; ?>
 no-repeat;)">
		<div id="logoname">
			<h2 class="clear"><span id="joincpleft">公司名片</span><span id="joincpright"><?php echo $this->_tpl_vars['showData']['cp_name']; ?>
</span></h2>
		
			<div id="joincpinfoimg"><img src="<?php echo $this->_tpl_vars['showData']['cp_pic']; ?>
"/></div>
			<div id="joincpbottom">
				<table>
				<tr><td width="80px;">公司主营：</td><td><?php echo $this->_tpl_vars['showData']['cp_domain']; ?>
</td></tr>
				<tr><td>公司电话：</td><td><?php echo $this->_tpl_vars['showData']['cp_phone']; ?>
</td></tr>
				<tr><td>联&nbsp;&nbsp;系&nbsp;&nbsp;人：</td><td><?php echo $this->_tpl_vars['showData']['cp_linkman']; ?>
</td></tr>
				<tr><td>联系电话：</td><td><?php echo $this->_tpl_vars['showData']['cp_linkphone']; ?>
</td></tr>
				</table>
			</div>
			
		</div>
		<div id="joincpinfocontent">
		<h2 style="margin-left:-1px;margin-bottom:10px;">公司简介：</h2>
			<?php echo $this->_tpl_vars['showData']['cp_content']; ?>

		
		</div>
	</div>
</div>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => 'Public/footer.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>